home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / apidev / batuti.arc / ANW.H < prev    next >
Text File  |  1990-01-11  |  1KB  |  66 lines

  1. /* anw.h -- data structures used for anw function calls */
  2. /* Richard Connelly (C) 1989,1990 */
  3.  
  4.  
  5. typedef struct  {       /* struct used to access NET$ACCT.DAT */
  6.             /* static portion */
  7.    int  length ;
  8.    long serverid ;
  9.    int  year,
  10.         month,
  11.         hour,
  12.         minute,
  13.         second ;
  14.    char completioncode ;
  15.    int  servicetype ;
  16.    long clientid ;
  17.    long amount ;
  18.    int  commenttype ;
  19. } CHARGERECORD;
  20.  
  21. typedef struct {        /* struct used to access NET$REC.DAT */
  22.             /* static portion */
  23.     int length ;
  24.     int commenttype;
  25.     char fieldcount;
  26. }  FIELDRECORD ;
  27.  
  28.  
  29. typedef struct {
  30.   int    length ;
  31.   char    function;
  32.   char    station ;
  33. } OUTPACKET ;
  34.  
  35.  
  36. typedef struct {                       /* function 16h */
  37.   int         length ;
  38.   char         objectid[4] ;
  39.   int         objecttype ;
  40.   char         objectname[48] ;
  41.   unsigned   char year ;               /* login time */
  42.   unsigned   char month ;
  43.   unsigned   char day ;
  44.   unsigned   char hour ;
  45.   unsigned   char minute ;
  46.   unsigned   char second ;
  47.   unsigned   char dayofweek ;
  48. } CONNECTINFO ;
  49.  
  50.  
  51. typedef struct {
  52.   int    length ;
  53.   char    network[4] ;
  54.   char    host[6] ;
  55.   char    socket[2] ;
  56. } MAP ;
  57.  
  58. /*
  59.  *   function prototypes for anw.c
  60.  */
  61.  
  62. char *GetStationAddress(void);
  63. int GetConnectionNumber(void);
  64. CONNECTINFO GetConnectInfo(int station);
  65.  
  66.